package com.cloudcc.mobile.adapter;

import android.content.Context;

import com.cloudcc.cloudframe.adapter.CommonAdapter;
import com.cloudcc.cloudframe.adapter.ViewHolder;
import com.cloudcc.mobile.R;
import com.cloudcc.mobile.entity.AttendanceEntity;

public class AttendanceListAdapter extends CommonAdapter<AttendanceEntity> {

	public AttendanceListAdapter(Context mContext) {
		super(mContext);
	}

	@Override
	public void convert(ViewHolder h, AttendanceEntity t) {
		h.setText(R.id.attendance_now, t.getRq());

		h.setText(R.id.attendance_title,"签到");
		h.setText(R.id.attendance_time,t.getQdsj());
		h.setText(R.id.attendance_location,t.getQdwz());
		
		h.setText(R.id.attendance_qt_title,"签退");
		h.setText(R.id.attendance_qt_time,t.getQtsj());
		h.setText(R.id.attendance_qt_location,t.getQtwz());
		
	}

	@Override
	public int getLayoutId() {
		return R.layout.attendance_item_history;
	}

}
